Did some changes in applying constraints- its no finished yet.