Added format method to custom plugin