Started working on dynamic data function for API