Implemented a base function.