Removed sleep as it doesn't work
Changed print to function including import