Registered lag command. added else statements.