The id is bound in the anonymous function, only the chan is getting passed in.