Changed workload data.
Created different functions to handle objects and endpoints.