First few steps of Facebook refactored.