Added a defualt parameter and function overloading