Corrected wrong output variable name.
Changed variable names and cleaned up code.
Introduced uStart.