Changed scope of function to private.