Removes redundant sleep instructions