Only solveLaplace to be exported to ensure optimisations are done