Passing context through to elements