Added serve method to lib