Moved the app ready block to the previous location