Added custom EWSB conditions that (appear to) pass the tests implemented.