Removed a dead variable
Removing the variables from the function head
A simplification as suggested by Morten
Additional simplification