Removed debugging code. Sorted out alignment clearence and reset issue