how to use quartz