Splitting define and run