Refactored method out. We may want to initialize other things besides for commands in the future.