Put some code in function