Replaced deprecated syntax