Updated to account for nil packages list