Deprecated file. Separated it into two functions. Better this way...