Removed function which would be more suitable in tests code