Added HW-accel code