Added functionality and expanded controller abilities for api