Added lw_cmd, which sets dim levels, etc