         return PaneUtilities
 
     @saveItems = ->
-        oFirstPane = ( aPanes = _getCurrentPanes() )[ 0 ]
+        oFirstPane = _getPaneAt 0
 
-        for oPane, iPaneIndex in aPanes
+        for oPane, iPaneIndex in _getCurrentPanes()
             for oItem in oPane.getItems()
                 oItem.originalPaneIndex = iPaneIndex
                 if iPaneIndex > 0

        oFirstPane = ( aPanes = _getCurrentPanes() )[ 0 ]

        for oItem in oFirstPane.getItems()
            oTargetPane = aPanes[ oItem.originalPaneIndex ] ? aPanes[ aPanes.length - 1 ]
            if oItem.originalPaneIndex > 0
                iItemsLength = oTargetPane.getItems().length
                oFirstPane.moveItemToPane oItem, oTargetPane, iItemsLength

        return PaneUtilities

    @moveItemTo = ( iTargetPaneIndex ) ->
        oTargetPane = _getPaneAt iTargetPaneIndex
        iItemsLength = oTargetPane.getItems().length

        ( oCurrentPane = atom.workspace.getActivePane() )
