Added in comments for where the functions are needed