Added create cluster logic.