Added message handling to protected resource