Implementing hardware accelerations