Register commands properly.