Level printing function