This should be in onAttached.
Signed-off-by: Chris Sanders <zidane@outlook.com>