Cleanup functions using @nextgenthemes' example