This looks like boilerplate to be replaced.