Accept dynamic input and break out functions