Removed hard coding of api class name. Added sent as.