Adds functions for messege polling