Added getProfile and setProfile methods