Fixed access to some of the case items.
Cleaned up a bit.
Adding additional case functions.