Added base functions and core variables