Cleaned-up boilerplate code.