Crete misc.* and move/add code to them