Got system to work besides access violations