Added sleep in main method