Socket - Updated

Re-factored open pin code to work correctly