Change activity API return from array to hash
Removed un-used method