Made helper functions private
Removed unnecessary import
Removed unused variable