Made the code more "usable" by using passed in variables to create the maplink.