Don't hardcode a 512 byte limit, because that's fucking stupid