Added open close functions for manual closing the pins