Begin logic setup