Removed some unused variables to get rid of compiler warnings. Assumed the method calls that set the variables don't have any side effects. They look like 'getters' so it *should* be fine.