Added default value option for yield method.