Reduce size of parameter

add intermediary variables
Merge pull request #52 from Astalaseven/patch-2

Reduce size of parameter through intermediary variables