Add each function to array