Some helper functions for GBM modelling