First draft is in place. It is very hard to debug