TODO: Detect when called from witin callbacks