Corrected Compile Error (Type error). added nextness for parameter optimisation purposes.