Cleans up boilerplate code