Finished implement the new Errors in function cores. Test needed.