Implement yaml parsing