Initial import of shared lib code