Updated code to reflect a comment