Added threaded interrupt inital code