Added execute method to api