Cleanup and condense resources