added open Functions and completed TC004