Added Rectangle Select function