Changed to not run detach method