Fixed indentation, changed sanity checks.