Moved method above declaration