Refactored smoe code and added Places