Added functions for profile management.