Code organization before sleep