Cleaned up profile script