Modified so that default coordinates are applied when required criteria is missing.