Add prelude
Reorder functions
Fix line deletion