Replaced emit with method