Created first-run logic