Implements some boilerplate stuff