Updated code to work with new multicheck callback function