Removed unused stuff from API.m