Removed some boilerplate code.