Added ability to get message from stdin