Lambda?!?! and added docking functionlity depending if dock is full or not