Re-adding deprecated method. It works, but is not completely safe.