Removed isDebug boolean and added messages class