Removed const due to incorrect behaviour.