Add upper as well as lower limit in method and remove indentation issues.