Add anonymous functions before other statements.