Made 's' variable in inOutElastic local