Needs debugging

I'll do it later >.>;;