Removing my infinite loop that wasn't infinite