Implemeted code to wait for user initialization