Added two functions inc/dec pin