Super ugly first working version