Added debugg and exec of callback in createMessage