Added optional memory pressure thread.