Base code for trolle