Code used for Kaggle competitions