Bug fixed. Pin Parameters are now used correctly.