Added debug for wrong way of caling