lib: Start implementing exported ports