Had params the wrong way round so was only working in specific example!