Implemented GPIO API