Added special case for k=2