Partially implements command registering and sending