Added hard fd detection and performed basic testing.