Working on Undo. Gotta check if the undo is requested from the undo and

then not register it.