Add register command, CS fixes.