Modularized CGLE subroutines