Added cluster code