Changed delta time to be in milliseconds