Cleanup & externs