Changed tabs and added self calling functions.