Modified tray.c and tray.h to look like original one.