First working version, yey!