Implemented a few function