Optimization and changing markdown flow