Added comment and created function prototype