Copied from Samp_Monitor project.