API Hack

Added functionality to api hack