And take entities as parameters