Add magic method invoke and toString