Merged code to single file