Moved blocks to app delegate. Quick commit for code review.