This works better than calling moveToLayer.
Updated comment.