Adding functionality to read messages and change response status