First code dump. Doesnt work yet