Pass records instead of id in arguments