Updated inventory read script