Create prepare_vcal custom function