Add read_message functionality to the lua sandbox