How to determine callbacks?