Speed up setup code