Move profile function to parent directory