Revisions

Perhaps the function signature should be updated to (int32, error)? It makes sense since an invalid path should return an error.