Made entity explicitly passed by ref