Port over all functionality from my old vb program