Implemented the pass() and fail() functions.