Some functions