     _onProfiles: (data, headers) =>
         if data && not data.error
             @users = data
-            @logger.debug 'Found '+Object.keys(@users).length+' profiles.'
+            @logger.info 'Found '+Object.keys(@users).length+' profiles.'
             @emit 'profilesLoaded', { profiles: @users }
         else
             @logger.error 'Failed to load profiles from server.'

        usersRoute + '/me/teams/' + @teamID

    getMe: ->
        @_apiCall 'GET', usersRoute + '/me', null, @_onMe

    getPreferences: ->
        @_apiCall 'GET', usersRoute + '/me/preferences', null, @_onPreferences

    getTeams: ->
        @_apiCall 'GET', usersRoute + '/me/teams', null, @_onTeams

    getInitialLoad: ->
        @_apiCall 'GET', usersRoute + '/initial_load', null, @_onInitialLoad

    loadUsersList: ->
        # Load userlist
        @_apiCall 'GET', @teamRoute() + '/members', null, @_onProfiles
        @_apiCall 'GET', @channelRoute(''), null, @_onChannels


    connect: ->

    _onChannels: (data, headers) =>
        if data && not data.error
            @channels = data
            @logger.info 'Found '+Object.keys(@channels).length+' subscribed channels.'
            @emit 'channelsLoaded', { channels: @channels }
        else
            @logger.error 'Failed to get subscribed channels list from server: ' + data.error
            @emit 'error', { msg: 'failed to get channel list'}

    _onPreferences: (data, headers) =>
        if data && not data.error
            @preferences = data
            @emit 'preferencesLoaded', { preferences: @preferences }
            @logger.info 'Loaded Preferences...'
        else
            @logger.error 'Failed to load Preferences...' + data.error


    _onMe: (data, headers) =>
        if data && not data.error
            @me = data
            @emit 'meLoaded', { me: @me }
            @logger.info 'Loaded Me...'
        else
            @logger.error 'Failed to load Me...' + data.error

    _onTeams: (data, headers) =>
        if data && not data.error
            @teams = data
            @emit 'teamsLoaded', { teams: @teams }
            @logger.info 'Found '+Object.keys(@teams).length+' teams.'
            for t in @teams
                @logger.debug "Testing #{t.name} == #{@group}"
                if t.name.toLowerCase() == @group.toLowerCase()
                    @logger.info "Found team! #{t.id}"
                    @teamID = t.id
                    break
            @loadUsersList() # FIXME
