Changed some internal calls. Added Java date.