Added initial 1D support.