Very primitive but kinda working