Uses api library now. Removed push mechanism