Added file extension constraints.