Adding debug info and overiding lifecycle methods