First working version, yay \o/