Seems like this needs some sanity checks.