Pass attributes via lambda