Removed unused methods and unnecessary logs.