First kinda working version