Adding Rules Engine
Refactored serial service