Clean up implementation.