Fixed functionDecorator object and added arguments