Making callback optional