Added trends pail stuff to bash script