Added apt check