Updated the type errors