Added comments for functions