Add comments to the rest of the functions