Now reads inputs as function arguments