Added check for invalid 'uses(' statement