Added heap for messages into loader

@vparfonov