Modification to fit with Syrak's function