Add global slot limit. Fixes feature request #40