Didn't display messages properly, now it does