Made code more user friendly.