Implemented grid to handle custom events, specified by client code
Added the missing ;