Cleanup of preamble