Refactored some of the SBA* algorithm interfaces, trying to minimize long repetitive functions.