Simplified all in one file.