Initial implementation of basis method.