New input structure
SPG adapted version