The key to avoiding these penalties is using safe harbors.