Added the context as a fourth parameter