Merged code into single file