Debug code removed. Basicly, First more or less working version =)