Implement unit controller

Converting and retrieving units