Added deploy functionality to API