Added automatic actions. Not tested yet.