Removed alarm from IH as malloc() takes long. Made background thread to handle its work. Fixed FIN bug.