Fixed a typo
Updated routine