Added register method, tab completion.