Removes unneccesary use of mod in the ESC queue