Lambda for create actions
AStyle formatting added. Code reformatted using K&R style
... temporary