Removed unused imports
Added check for version working on making profile