Added method to add single function