Changed syntax to new version