Get these params right.
Add bad session error.
Clean up.
Clean this up some more.