Removing unused var 'slotfile'