Patch by dillion

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>