These are the two functions made by me.