Cleanup constructor