Removed default type serializing because it doesn't work in a lot of casesl.