Removed unnecessary code including unused imports.