Added set_location() method.