Handle variable length topic