Implement get profile functionality