Added automatic level alignment