Integrated core functions to some scripts.