Added sleep delay to try and ensure all commands run in order