Rules subroutine fixed and tested