Cleaned up and moved around file to generalize the purpose.