Some random code of mine from here and there