Clean up setup function.