Added implementation of getProfile and setActive