Added an easier way to register components