Fixed naming of function and added comment