Added parameter 'type' to Channel.path