Added delay, seems to be working