Removed usage of now deprecated method.