Adding pre-existing code