Adds API, updates load data command with some extra preprocessing