Refactored the module to deprecated API methods