Initial structure and cleanup