Added isOkay. Fixed bug in isOkayBlock