Improved lead functions; added fence post