Cleaned up main, moved initializer functionality into depenedency