The message_offset function was added in 0.19 not 0.18.