Added dock and release method.