Move hook to Activity class