Edited to display multiple functions