Timestamping implemented. Added cache to ports.