Using magicpen callback methods