Implemented functionality to handle GPIO access