Extracted the initial setup in the "begin" thing