Introduced handling of missing secret key exceptions, and adopted unipath for cleaner, more elegant path calculations