Added console out for debugging purpose