Add support for multiple inputs