Refactored the slot imlementation code 

This codeline does not exist in the code any more,