Removed refresh-logic as it is not needed and causes multiple messages to be sent.