Updated stable. Did some optimizations
Added printout statements