Introducing context to cb functions