Changed way basis is computed.