Added method to check whether callback has been called.