Adds function creation