Add dummy attach/init plus various definitions