# When Daniel learned that the document had been signed into law It is important to the story to state clearly that Daniel knew about the new law before he prayed to God. # now his windows were open in his upper room toward Jerusalem This is background information that explains how Daniel's enemies knew he was praying to God. # gave thanks before his God "gave thanks to his God"