DJR:Added checkMessages method
DJR:Added checking messages