How to use function