Basic expect optimization and cpw.sh inclusion.