Removed all compiler warnings. I have no idea if this works. Let's start tinkering.