[WIP] Removed unused functions
[WIP] Implement vp_encode()