Update control

Invalid variable name $pid
Merge pull request #5 from niedbalski/master

Update control