3D functionality added