Fixed minls bug. Added more debug output text