Added scale prototype code