Added functionality for creating avatars