Made setup a function call