Added gpio callback