added control functions