Implemented entire Handler and Transformer logic