Added memorized function to core