Ports stub lib to module