Trim a bunch of useless routines