Implemented Mouse tracking