Worked on modifying code to use Range instead of two parameters