Added pin code and command selection