Basic collocation function