Added function hook for the MessageQ_put method