Added sample points->bus mapping algorithm