Add a method to stop resizing