Code works! (At least without crashes)