Custom lib functions

- Implemented custom lib functions