Modified totdu so it can take a list of arguments