Added more code to Profile related files.