Will this actually work properly, coding standard wise? Please add a unit tests for this.