Add data extraction functions and create a simple function management system