Added 3d acceleration