Debug messages + bugfixing. Still not determined the position