Added ability for the code to stay still.