Added code to handle shift clicking.