Took out unneeded code, trimmed to the basics